<?php
include "Utils.php";
$servername="127.0.0.1";
$username="root";
$password="mysunshine129!";
$DBname="mysql";
$conn=mysqli_connect($servername,$username,$password,$DBname);
$oprate=new operate();
if($conn->connect_error){
    echo "wrong connect!!please check your program.";
}else{
    $latitude=$oprate->getLastLatitude($conn);
    $longitude=$oprate->getLastLongitude($conn);
    $row1=mysqli_fetch_row($latitude);
    $row2=mysqli_fetch_row($longitude);
    echo  $row1[0]." ".$row2[0];
}

